package com.y.entity.vo;

import lombok.Getter;
import lombok.ToString;

/**
 * 状态码实体
 * @author Yjh
 */
@Getter
@ToString
public enum RHttpStatusEnum {

    FRONT_SUCCESS(200,"处理成功"),
    USER_REGISTER_SUCCESS(200,"注册用户成功"),
    USER_INFO_NOT_PERFECT(400,"请完善用户信息"),
    USER_NOT_LOGIN(400,"请先登录用户"),
    EXCEPTION(401,"运行异常"),
    DELETE_FAIL(402,"删除失败"),
    FOOD_NOT_ENOUGH(-201,"库存不足,购买失败"),
    CAPTCHA_ERROR(-202,"验证码错误"),
    USER_NOT_EXIST(-202,"用户不存在"),
    USER_LOCKED(-202,"账户被冻结,请联系管理员"),
    USERNAME_OR_PASSWORD_ERROR(-203,"用户名或密码错误,请重新登录"),
    USERNAME_NOT_AVAILABLE(-207,"用户名不可用"),
    PASSWORD_NOT_EQUALS(-205,"密码不相同错误");

    private final Integer code;
    private final String  message;

    RHttpStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


}
